<layout name='layout/main' />

	<header class="am-header am-header-default">
		<div class="am-header-left am-header-nav">
		<a href="<{:U('Index/index')}>"><i class="am-header-icon am-icon-home"></i></a>
    	</div>
		<h1 class="am-header-title">购物车</h1>
		<div class="am-header-right am-header-nav">
		<a href="javascript:window.history.go(-1)"><i class="am-header-icon am-icon-reply"></i></a>
    	</div>
	</header>
  
  	<div class="tabMenu">
  		<ul>
  			<li class="active">1、购物车</li>
  			<li>2、确认订单</li>
  			<li>3、购买成功</li>
  		</ul>
  	</div>
		
	
	<volist name="list" id="vo" empty="$empty">
	<div class="am-g cartList">
		<div class="am-u-sm-3"><a href=""><img src="<{$vo.picname}>"></a></div>
		<div class="am-u-sm-8">
			<p><{$vo.pname}><noempty name="vo.pram"><br/><{$vo.pram}></noempty></p>
			<p class="m"><{$vo.price}></p>
			<input type="hidden" id="goodsPrice<{$vo.id}>" value="<{$vo.price}>" />
			<div>
		    	<a href="javascript:void(0)" class="am-btn am-btn-default am-btn-xs" onclick="changeNum('del',<{$vo.id}>)">-</a>
		      	<div class="am-btn am-btn-default am-btn-xs" id="buyNum<{$vo.id}>"><{$vo.number}></div>
		      	<a href="javascript:void(0)" class="am-btn am-btn-default am-btn-xs" onclick="changeNum('add',<{$vo.id}>)">+</a>
		    </div>
		</div>
		<div class="am-u-sm-1"><a href="<{:U('Store/delcart',array('id'=>$vo['id']))}>"><i class="am-icon-trash"></i></a></div>
	</div>
	</volist>

	<div class="cartBar">
		<p>合计：<span id="totalMoney"><{$totalPrice}></span></p>
		<a href="<{:U('Store/order')}>">去结算</a>
	</div>